<template>
  <div ref="echartsView" class="echarts-view"></div>
</template>

<script>
export default {
  name: "echarts-view",
  data () {
    return {

    }
  },
  mounted () {

  },
  methods: {
    updataEchart (option) {
      let echartsId = this.$refs.echartsView
      let myChart = this.$echarts.init(echartsId);
      myChart.setOption(option, true);
    }
  }
}
</script>

<style scoped lang="scss">

</style>
